import Home from '@/pages/Home'
import Register from '@/pages/Register'
import Login from '@/pages/Login'
import Search from '@/pages/Search'
import Detail from '@/pages/Detail'
import AddCart from '@/pages/AddCartSuccess'
import ShopCart from '@/pages/ShopCart'
import Trade from '@/pages/Trade/'
export default  [
    {
        path: '/Trade',
        component: Trade,
        meta: { show: true }
    },
    {
        path: '/feng123',
        component: ShopCart,
        meta: { show: true }
    },
    {
        path: '/AddCart',
        name: 'AddCart',
        component: AddCart,
        meta: { show: true }
    },
    {
        path: '/detail/:skuid',
        component: Detail,
        meta: { show: true }
    },
    {
        path: '/home',
        component: Home,
        meta: { show: true }
    },
    {
        path: '/Register',
        component: Register,
        meta: { show: false }
    },
    {
        path: '/Login',
        component: Login,
        meta: { show: false },
    },
    {
        name: 'search',
        path: '/search/:keyword?',
        component: Search,
    },
    // 重定向
    {
        path: '*',
        redirect: '/home'
    }
]